package com.shengdai.urms.core.model;

/**
 */
public class UmRole implements java.io.Serializable {
	/**
	 *
	 */
	private static final long	serialVersionUID	= 30023016L;

	private String				roleid;							// 角色ID
	private String				rolename;							// 角色名称
	private String				rolecode;							// 角色编码
	private String				baserole;							// 基础角色
	private String				syscode;							// 系统编码
	private String				creator;							// 创建人
	private String				orgrange;							// 组织范围,组织代码，中间用逗号,分割
	private String				parentids;							// 父角色ID
	private String				memo;								// 备注
	private Float				showorder;							// 显示顺序
	private UmRole[]			parents;							// 父角色对象
	private String				framesetid;						// 默认框架
	private String				isdefault;							// 是否默认角色

	public String getFramesetid() {
		return framesetid;
	}

	public void setFramesetid(String framesetid) {
		this.framesetid = framesetid;
	}

	public UmRole[] getParents() {
		return parents;
	}

	public void setParents(UmRole[] parents) {
		this.parents = parents;
	}

	public String getRoleid() {
		return roleid;
	}

	public void setRoleid(String roleid) {
		this.roleid = roleid;
	}

	public String getRolename() {
		return rolename;
	}

	public void setRolename(String rolename) {
		this.rolename = rolename;
	}

	public String getSyscode() {
		return syscode;
	}

	public void setSyscode(String syscode) {
		this.syscode = syscode;
	}

	public String getCreator() {
		return creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	public String getOrgrange() {
		return orgrange;
	}

	public void setOrgrange(String orgrange) {
		this.orgrange = orgrange;
	}

	public String getParentids() {
		return parentids;
	}

	public void setParentids(String parentids) {
		this.parentids = parentids;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	public Float getShoworder() {
		return showorder;
	}

	public void setShoworder(Float showorder) {
		this.showorder = showorder;
	}

	public boolean isGlobal() {
		return syscode == null || syscode.length() == 0;
	}

	public String getRolecode() {
		return rolecode;
	}

	public void setRolecode(String rolecode) {
		this.rolecode = rolecode;
	}

	public String getBaserole() {
		return baserole;
	}

	public void setBaserole(String baserole) {
		this.baserole = baserole;
	}

	public String getIsdefault() {
		return isdefault == null ? "N" : isdefault;
	}

	public void setIsdefault(String isdefault) {
		if (isdefault == null)
			this.isdefault = "N";
		else
			this.isdefault = isdefault;
	}
}
